package org.easymis.crm.modules.crm.service.impl;

import java.util.HashMap;
import java.util.List;

import org.easymis.crm.modules.crm.entitys.mybatis.dto.CrmCustomer;
import org.easymis.crm.modules.crm.entitys.mybatis.mapper.CrmCustomerMapper;
import org.easymis.crm.modules.crm.service.CrmCustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class CrmCustomerServiceImpl implements CrmCustomerService {
	@Autowired
	private CrmCustomerMapper mapper;
	@Override
	public List<CrmCustomer> getList(CrmCustomer bean) {
		HashMap<String, Object> params = new HashMap<String, Object>();
		return mapper.getList(params);
	}

	@Override
	public List<CrmCustomer> getWatched(CrmCustomer bean) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int getCount(CrmCustomer bean) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void save(CrmCustomer bean) {
		// TODO Auto-generated method stub
		mapper.save(bean);
	}

	@Override
	public void update(CrmCustomer bean) {
		// TODO Auto-generated method stub
		mapper.update(bean);
	}

	@Override
	public void delete(String customerId) {
		// TODO Auto-generated method stub
		mapper.delete(customerId);
	}

	@Override
	public void remove(String[] ids, String deleteId, String deleteName) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void restore(String[] ids) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void delete(String[] ids) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public CrmCustomer findById(String customerId) {
		// TODO Auto-generated method stub
		return mapper.findById(customerId);
	}

}
